import myAxios from '../plugins/myAxios';

/**
 * 解散队伍 API
 * @param teamId 队伍ID
 * @returns 响应结果
 */
export const deleteTeamApi = async (teamId: number) => {
  const res = await myAxios.post('/team/delete', { id: teamId });
  return res;
};

/**
 * 退出队伍 API
 * @param teamId 队伍ID
 * @returns 响应结果
 */
export const exitTeamApi = async (teamId: number) => {
  const res = await myAxios.post('/team/quit', { teamId });
  return res;
};

export default {
  deleteTeamApi,
  exitTeamApi
}; 